package de.koller.magnitude.entity.region;

import de.koller.magnitude.web.WebDisplayRoot;
import de.koller.magnitude.web.pages.MPage;
import java.util.List;

public class RegionPage extends MPage {

	public RegionPage( WebDisplayRoot root ) {
		super( root );
	}

	@Override
	protected String getBody() {
		List<Region> r = null;//webroot.mroot.data.regionContent.regions;
		String[][] rl = new String[2][ r.size() + 1 ];
		
		rl[0][0] = "<b>Region</b>"; rl[1][0] = "<b>Spieler</b>";
		for( int i = 0; i < r.size(); i++ ) {
			Region k = r.get( i );
			rl[0][i+1] = k.name + " (" + (int)k.levelrange.lowerBound + "-" + (int)k.levelrange.upperBound + ")";
			rl[1][i+1] = "?";
		}
		
		return table( rl, 1 );
	}
	
	@Override
	protected String getPageTitle() {
		return "Regionen";
	}
	
}
